package com.example.springbootstart.service;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import com.example.springbootstart.dao.entity.Product;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Service
public class ProductService {
    public List<Product> listProducts(){
        List<Product> ps=new ArrayList<>();
        ps.add(new Product(1,"ProductA",50));
        ps.add(new Product(2,"ProductB",100));
        ps.add(new Product(3,"ProductC",150));
        return ps;
    }

    public static void main(String[] args) {
        DateTime time= DateUtil.parseTime("15:25:00");
        System.out.println(time.toString());
    }
}
